package com.manage.platform.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.manage.platform.entity.TaskParticipantEntity;
import com.manage.platform.mapper.TaskParticipantMapper;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * YWD
 * 2025/9/25
 */
@AllArgsConstructor
@Service
public class TaskParticipantServiceImpl extends ServiceImpl<TaskParticipantMapper, TaskParticipantEntity> {


    public Boolean removeByTaskId(Long taskId) {
        LambdaQueryWrapper<TaskParticipantEntity> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(TaskParticipantEntity::getTaskId, taskId);
        return remove(queryWrapper);
    }

}
